//tools image
var toolsMenu = document.createElement('img');
toolsMenu.src = "tools.png";

var raster = new Raster(toolsMenu);
// Move the raster to the center of the view
raster.position = new Point(0+raster.width/2 ,0+raster.height/2);

// Scale the raster by 50%
function onMouseUp(event) {
    if(event.point.y>=0 && event.point.y<=23){//tool A
		WDC_ToolHandler.change('line');
		WDC_ToolHandler.color(255,255,255);
		WDC_ToolHandler.color("#CCCCCC");
    }else if(event.point.y>23 && event.point.y<=46){//tool B
		WDC_ToolHandler.change('brush');
	}else if(event.point.y>46 && event.point.y<=69){//tool C
		WDC_ToolHandler.change('hand');  
    }
}

